// 多行文字超出显示省略号
@mixin ellipsis-multiline($number: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $number;
  line-clamp: $number;
  -webkit-box-orient: vertical;
  /*! autoprefixer: off */
}
// 文字一行超出显示省略号
@mixin ellipsis() {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /*! autoprefixer: off */
}

@mixin linear-gradient($deg, $colorForm, $colorTo) {
  background-image: -webkit-linear-gradient($deg, $colorForm, $colorTo);
  background-image: -moz-linear-gradient($deg, $colorForm, $colorTo);
  background-image: -o-linear-gradient($deg, $colorForm, $colorTo);
  background-image: linear-gradient($deg, $colorForm, $colorTo);
}

@mixin skeletonLoading() {
  background-color: #d9d9d9;
  border-radius: 2px;
  font-size: 0;
  animation: linear skeletonLoading 2s infinite;
  & * {
    visibility: hidden;
  }
}

@mixin flex-page-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

@mixin flex-page-auto-grow {
  height: 1px;
  flex: 1;
}

@mixin card-shadow-big {
  box-shadow: 0 14px 32px 24px rgba(0, 0, 0, 4%), 0 12px 28px 8px rgba(0, 0, 0, 3%), 0 10px 24px -24px rgba(0, 0, 0, 2%);
}

@mixin card-shadow-small {
  box-shadow: 0 6px 16px 6px rgba(0, 0, 0, 4%), 0 4px 12px 0 rgba(0, 0, 0, 3%), 0 2px 8px -6px rgba(0, 0, 0, 2%);
}

@mixin card-shadow-mini {
  box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 4%), 0 2px 4px 0 rgba(0, 0, 0, 3%), 0 1px 3px -2px rgba(0, 0, 0, 2%);
}
